<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<script type="text/javascript" src="${pageContext.request.contextPath}/cts/js/jquery.js"></script>
	<style type="text/css">
		.div_dochistory{
			width: 200px;
			height: 40px;
			background: url('${pageContext.request.contextPath}/cts/images/history.png') no-repeat;
		}
	</style>
	<script type="text/javascript">
		$(function(){
			if(window.parent.fixedIframeHeight){
				window.parent.fixedIframeHeight();
			}
			var isHistory = '<s:property value="#request.isHistory"/>';
			if(isHistory == 1){
				var bodyObj = $('body');
				var div_dochistory = $('<div class="div_dochistory"></div>');
				bodyObj.append(div_dochistory);
				div_dochistory.offset({top: 180, left: (bodyObj.width() - div_dochistory.width()) / 2});
			}
			if(window.parent.fixedUnReadCount){
				window.parent.fixedUnReadCount('<s:property value="#request.unReadCount"/>');
			}
		})
		
		function exportPdf(){
			if(document.createEvent && !$.browser.mozilla){
				card = document.getElementById('a_exportpdf');
				var ev = document.createEvent('HTMLEvents');
				ev.initEvent('click', false, true);
				card.dispatchEvent(ev);
			}else{
			 	document.getElementById('a_exportpdf').click();
			}
		}
	</script>
</head>
<body>
	<a id="a_exportpdf" href="http://pdfcrowd.com/url_to_pdf/?width=210mm&height=297mm"></a>
	<%
		String ajaxLoadContent = (String)request.getAttribute("ajaxLoadContent");
		if(ajaxLoadContent != null){
			out.write(ajaxLoadContent);
		}
	%>
</body>
</html>

